<template>
  <router-view #default="{ Component }">
    <keep-alive :include="keepAliveList">
      <component :is="Component"></component>
    </keep-alive>
  </router-view>
</template>
<script>
import keepAliveList from '@/router/keepAliveList';
export default {
  name: "App",
  data() {
    return {
      keepAliveList
    }
  }
}
</script>

<!-- 根组件不能加scoped ，所有组件都需要用到的-->
<style lang="scss">
@import url("https://at.alicdn.com/t/c/font_3029789_g0pn978wj0n.css")
</style>
